<template>
  <div v-if="fileUrl.endsWith('png') || fileUrl.endsWith('jpg')">
    <img :src="fileUrl" style="width: 400px">
  </div>
</template>

<script setup>

import { defineProps } from 'vue'
const props = defineProps({
  fileUrl: {
    type: String,
    required: true
  }
})

</script>